.editor{
    margin-left: calc(50% - 512px);
    width: 1024px;
    height: 500px;
}